package publish

const (
	CTest = iota
	CDeadLetter
	CDelayed
	CFailed
)

type publishConstant struct {
	region       string // 区域源 ：根据配置可以区分开不同的 rabbitmq 服务
	exchangeName string // 交换机
	routingKey   string // 路由
	api          string // api
}

/**
 *  @Author yang
 *  @Description 保存所有的队列信息
**/
var PublishConstantMap = map[int]publishConstant{
	// 消息推送接收队列
	CTest: {
		region:       "base",
		exchangeName: "resource-manage",
		routingKey:   "resource-manage-test",
		api:          "resource-manage-test",
	},

	// 死信队列接收信息 模式： Per-Queue Message TTL
	CDeadLetter: {
		region:       "base",
		exchangeName: "resource-manage",
		routingKey:   "resource-manage-deal-letter",
		api:          "",
	},

	// 延时队列 模式： Per-Message TTL
	CDelayed: {
		region:       "base",
		exchangeName: "resource-manage-delayed",
		routingKey:   "resource-manage-delayed",
		api:          "",
	},

	// 失败队列接收信息
	CFailed: {
		region:       "base",
		exchangeName: "resource-manage",
		routingKey:   "resource-manage-failed",
		api:          "",
	},
}
